package com.dkm.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.dkm.entity.Student;


public interface StudentRepository extends JpaRepository<Student, String>,JpaSpecificationExecutor<Student> {

	//根据网络咨询师id获取未分配的学生信息
	@Query(value = "select * from student where network_counselor_id=:network_counselor_id and counselor_id is null",nativeQuery = true)
	List<Student> getStudentByNetCounselor_id(@Param("network_counselor_id")String network_counselor_id);
}
